<?phpclass NCore_Port_Filter_Integer{	protected $re = '/^\d+$/';		function __construct($re)	{		if(!is_null($re))		{			$this->re = $re;		}	}	public function filter($value)	{		return preg_match($this->re, $value);	}}?>